import { Button, Input } from "antd";
import TextArea from "antd/lib/input/TextArea";
import { useEffect, useState } from "react";

export default function Index(props: any) {
    const [baiduAnalyticsId, setbaiduAnalyticsId] = useState('');
    const [googleAnalyticsId, setgoogleAnalyticsId] = useState('');
    useEffect(() => {
        setbaiduAnalyticsId(props.InitialValue.baiduAnalyticsId)
        setgoogleAnalyticsId(props.InitialValue.googleAnalyticsId)
    }, [])

    console.log(props.InitialValue)
    return (
        <div>
            <p>
                百度统计 <Input value={baiduAnalyticsId} placeholder="关键字" />
            </p>
            <p>
                谷歌分析 <Input value={googleAnalyticsId} placeholder="描述信息" />
            </p>
            <Button type="primary">保存</Button>
        </div>
    )
}